<html>
<head><meta charset="utf-8"><title>IntoFuture · wg-async-foundations/book · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/index.html">wg-async-foundations/book</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/IntoFuture.html">IntoFuture</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="176270672"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/IntoFuture/near/176270672" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> theduke <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/IntoFuture.html#176270672">(Sep 21 2019 at 16:10)</a>:</h4>
<p>The original async/await RFC specifies <code>await</code> (well, the macro variant) to go through a <code>IntoFuture</code> trait (<a href="https://rust-lang.github.io/rfcs/2394-async_await.html#the-expansion-of-await" target="_blank" title="https://rust-lang.github.io/rfcs/2394-async_await.html#the-expansion-of-await">see RFC</a>). </p>
<p>Is there a reason why this wasn't implemented, or is this an oversight?</p>
<p>The context is a <a href="https://www.reddit.com/r/rust/comments/d7acl0/async_finalizers/" target="_blank" title="https://www.reddit.com/r/rust/comments/d7acl0/async_finalizers/">blog post </a> which gave me the idea for an IntoFuture trait, but someone pointed out that it actually was already in the RFC.</p>
<p>Edit: whoops, this wasn't intended for the book stream.</p>



<a name="176454770"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/IntoFuture/near/176454770" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Gilcher <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/IntoFuture.html#176454770">(Sep 24 2019 at 11:40)</a>:</h4>
<p>I don't know where that was removed, but I know that IntoFuture was used everywhere in futures <code>0.1</code> and interface-wise, it was moved away from</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>